﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CMPPProtocol;
using CMPPProtocol.Message;

namespace CMPPCore.Message
{
    /// <summary>
    /// 短信提交的事件消息
    /// </summary>
    public class SubmitMessage
    {
        /// <summary>
        /// 提交的短信
        /// </summary>
        public CMPP_SUBMIT Submit { get; set; }
        /// <summary>
        /// 提交报告
        /// </summary>
        public CMPP_SUBMIT_RESP Submit_Resp { get; set; }
        /// <summary>
        /// 异步状态
        /// </summary>
        public object AsyncState { get; set; }
        /// <summary>
        /// 异常
        /// </summary>
        public Exception Exception { get; set; }
        /// <summary>
        /// 是否有错误
        /// </summary>
        public bool HasError
        {
            get
            {
                return Exception != null;
            }
        }
    }
}
